package cs3343.project.family;

/**
 * The Class Card.
 */
public class Card {
	
	/** The id. */
	protected int id;
	
	/** The name. */
	protected String name;
	
	/** The description. */
	protected String description;
	
	/** The options. */
	protected String[][] options;
	
	/**
	 * Instantiates a new card.
	 */
	public Card() {}
	
	/**
	 * Instantiates a new card.
	 *
	 * @param name the name
	 */
	Card(String name) {
		this.name = name;
	}
	
	/**
	 * Gets the name.
	 *
	 * @return the name
	 */
	public String getName() {
		return this.name;
	}

	/**
	 * Gets the options.
	 *
	 * @return the options
	 */
	public String[][] getOptions() {
		return options;
	}

	/**
	 * Sets the options.
	 *
	 * @param options the new options
	 */
	public void setOptions(String[][] options) {
		this.options = options;
	}
	
	/**
	 * Gets the option.
	 *
	 * @param index the index
	 * @return the option
	 */
	public String getOption(int index) {
		return options[index][0];
	}
	
	/**
	 * Gets the result.
	 *
	 * @param index the index
	 * @return the result
	 */
	public String getResult(int index) {
		return options[index][1];
	}

	/**
	 * Gets the description.
	 *
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * Sets the description.
	 *
	 * @param description the new description
	 */
	public void setDescription(String description) {
		this.description = description;
	}
}
